package com.zx.deploy.model;

/**
 * 进度信息
 * 
 * @author jbyu
 *
 */
public class SpeedProgress {

	private StringBuilder logs = new StringBuilder();

	/**
	 * 进度
	 */
	private int speed = 0;

	/**
	 * 步骤
	 */
	private String step;
	
	/**
	 * 状态(1成功 0失败)
	 */
	private int status=1;



	public SpeedProgress() {

	}

	public SpeedProgress(int speed, String step) {
		super();
		this.speed = speed;
		this.step = step;
	}

	public void setInfo(int speed, String step, String log) {
		this.speed = speed;
		this.step = step;
		this.logs.append(log).append("\n");
	}
	
	public void setInfo(String step, String log) {
		this.step = step;
		this.logs.append(log).append("\n");
	}

	public void setInfo(int speed, String step) {
		this.speed = speed;
		this.step = step;
	}

	public void setInfo(String log) {

		this.logs.append(log).append("\n");
	}

	public StringBuilder getLogs() {
		return logs;
	}

	public void setLogs(StringBuilder logs) {
		this.logs = logs;
	}

	public int getSpeed() {
		return speed;
	}

	public void setSpeed(int speed) {
		this.speed = speed;
	}

	public String getStep() {
		return step;
	}

	public void setStep(String step) {
		this.step = step;
	}
	
	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

}
